package rlex.classes.program;

import java.util.List;

/*
 * var i: type;
 * var j: type
 */
public class VariableDeclarationList {
	private List<VariableDeclaration> vars;

	public List<VariableDeclaration> getVars() {
		return vars;
	}

	public void setVars(List<VariableDeclaration> vars) {
		this.vars = vars;
	}
	
	public String toString() {
		String ret = "";
		for (int i = 0; i < vars.size(); i++) {
			ret += vars.get(i).toString();
			ret += ",";
		}
		return ret;
	}
	
	public void display(int level) {
		System.out.print("VARS : ");
		for (int i = 0; i < vars.size(); i++) {
			vars.get(i).display();
			System.out.print(" , ");
		}
		System.out.print("\n");
	}
	
}
